package com.zsc.newbuds.entity;

import java.io.Serializable;

/**
 * @author D
 */
public class Admin implements Serializable,Comparable<Admin> {

    private Integer adminId;
    private String account;
    private String password;
    private String adminName;
    private String phone;
    private String position;
    private int oderNumber;
    private String adminImage;
    private String address;
    private String workArea;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWorkArea() {
        return workArea;
    }

    public void setWorkArea(String workArea) {
        this.workArea = workArea;
    }

    public String getAdminImage() {
        return adminImage;
    }

    public void setAdminImage(String adminImage) {
        this.adminImage = adminImage;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getOderNumber() {
        return oderNumber;
    }

    public void setOderNumber(int oderNumber) {
        this.oderNumber = oderNumber;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", adminName='" + adminName + '\'' +
                ", phone='" + phone + '\'' +
                ", position='" + position + '\'' +
                ", oderNumber=" + oderNumber +
                ", adminImage='" + adminImage + '\'' +
                ", address='" + address + '\'' +
                ", work_area='" + workArea + '\'' +
                '}';
    }

    @Override
    public int compareTo(Admin o) {
        return this.adminId - o.adminId;
    }
}
